<template>
  <div id="nav-bar">
    <div class="nav-left"><slot name="left"></slot></div>
    <div class="nav-center"><slot name="center"></slot></div>
    <div class="nav-right"><slot name="right"></slot></div>
  </div>
</template>

<script>
	export default {
		name: "NavBar"
	}
</script>

<style scoped>
  #nav-bar {
    box-sizing: border-box;
    padding: 0 30px;
    /* position: relative; */
    z-index: 10;

    display: flex;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    width: 750px;
    height: 88px;
    line-height: 88px;
    text-align: center;
  }

  .nav-left {
    display: flex;
    width: 160px;
    align-items: center;
    justify-content: flex-start;
  }

  .nav-center {
    flex: 1;
    font-size: 32px;
    font-weight: bold;
    color: #333;
  }

  .nav-right {
    display: flex;
    align-items: center;
    width: 160px;
    justify-content: flex-end;
  }
</style>
